package taschenrechner001;

import java.io.*;

public class TaschenrechnerTest {
	public static void main(String[] args)
	{
		try
		{
			Taschenrechner calc = new Taschenrechner();
			System.out.println(calc.calculateFileContent(args[0]));
		}
		catch (FileNotFoundException e)
		{
			System.out.println("File not found.");
		}
		catch (NumberFormatException e)
		{
			System.out.println("File contains unknown operator: "+"\""+e.getMessage()+"\"");
		}
		catch (IOException e)
		{
			System.out.println("Error reading file.");
		}
	}
}